cmake_minimum_required(VERSION 2.8)

project("OpenGL Benchmark 1")

if (UNIX)
  set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/../bin/linux")
  include_directories(/usr/local/include/SDL)
  link_directories(/usr/local/lib)
  set(CMAKE_CXX_FLAGS "-g")
elseif (WIN32)
  set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/../bin")
  include_directories("${CMAKE_SOURCE_DIR}/../external/inc/SDL")
  link_directories("${CMAKE_SOURCE_DIR}/../external/lib")
endif (UNIX)

include_directories("${CMAKE_SOURCE_DIR}/../external/inc")

add_executable(oglbench1 main.cc opengl_entry.h opengl_entry.cc loaderply.h loaderply.cc)
target_link_libraries(oglbench1 SDL)
